package com.rock.code.datacollconfig.zabbix.service.impl;

import com.rock.code.datacollconfig.zabbix.dao.TbCollResConfDao;
import com.rock.code.datacollconfig.zabbix.domain.TbCollResConf;
import com.rock.code.datacollconfig.zabbix.service.TbCollResConfService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

/**
 * @author piandu
 * @description Service实现
 * @date 2018/9/14 16/34
 */
@Service
public class TbCollResConfServiceImpl implements TbCollResConfService {

    @Resource
    private TbCollResConfDao tbCollResConfDao;


    @Override
    public List<TbCollResConf> getAllCollResConf(Map map) {
        if(map!=null&&!map.isEmpty()){
            return tbCollResConfDao.getAllCollResConf(map);
        }
        return null;
    }

    @Override
    public TbCollResConf getAllCollResConfById(String id) {
        return  tbCollResConfDao.getAllCollResConfById(id);
    }
}